package com.taobao.txc.parser.b;

import com.taobao.txc.common.LoggerInit;
import com.taobao.txc.common.LoggerWrap;
import com.taobao.txc.common.TxcContext;
import com.taobao.txc.parser.b.a.g;
import com.taobao.txc.parser.b.c.c;
import com.taobao.txc.parser.b.c.d;
import com.taobao.txc.parser.b.c.i;
import com.taobao.txc.parser.b.c.k;
import com.taobao.txc.parser.b.c.m;
import java.lang.reflect.Method;
import org.apache.commons.lang.StringUtils;

public class b
{
  private static final LoggerWrap a = LoggerInit.logger;
  
  public static boolean a(String paramString)
  {
    return com.taobao.txc.parser.struct.e.a(paramString);
  }
  
  public static boolean a()
  {
    return false;
  }
  
  public static g b(String paramString)
  {
    g localg = null;
    Object localObject;
    if (a()) {
      try
      {
        localObject = Class.forName("com.taobao.txc.parser.visitor.tddl.TxcVisitorHelper");
        Method localMethod = ((Class)localObject).getDeclaredMethod("getTddlParserVisitor", new Class[] { String.class });
        localg = (g)localMethod.invoke(localObject, new Object[] { paramString });
      }
      catch (Exception localException)
      {
        a.a("", localException.getMessage(), localException);
      }
    }
    if (localg == null)
    {
      localObject = new k(paramString);
      localg = a((k)localObject);
    }
    return localg;
  }
  
  private static g a(k paramk)
  {
    Object localObject = null;
    switch (c.a[paramk.d().ordinal()])
    {
    case 1: 
      if (StringUtils.isNotEmpty(TxcContext.k())) {
        localObject = new i(paramk);
      } else {
        localObject = new com.taobao.txc.parser.b.c.b(paramk);
      }
    case 2: 
      localObject = new i(paramk);
      break;
    case 3: 
      localObject = new c(paramk);
      break;
    case 4: 
      localObject = new com.taobao.txc.parser.b.c.e(paramk);
      break;
    case 5: 
      localObject = new d(paramk);
      break;
    case 6: 
      localObject = new m(paramk);
      break;
    }
    localObject = new com.taobao.txc.parser.b.c.b(paramk);
    return localObject;
  }
}


/* Location:           C:\Users\ibm\Downloads\txc-yun-sample (1)\txc-yun-sample\lib\txc-client-2.0.72.jar
 * Qualified Name:     com.taobao.txc.parser.b.b
 * JD-Core Version:    0.7.0.1
 */